﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using TH.SMS.UI;

namespace TH.SMS.UI.Controls
{
    public partial class RiskChart : BaseWebPart
    {
        public RiskChart()
        {
            this.Title = "隐患统计";
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            this.UltraChart1.DataSource = GetColumnData();
            this.UltraChart1.DataBind();

        }

        private DataTable GetColumnData()
        {
            DataTable mydata = new DataTable();
            // Define the columns and their names
            mydata.Columns.Add("Series Labels", typeof(string));
            mydata.Columns.Add("Column A", typeof(int));
            mydata.Columns.Add("Column B", typeof(int));
            mydata.Columns.Add("Column C", typeof(int));
            mydata.Columns.Add("Column D", typeof(int));
            mydata.Columns.Add("Column E", typeof(int));
            // Add the rows of data
            mydata.Rows.Add(new Object[] { "Series A", 1, 4, 10, 4, 20 });
            mydata.Rows.Add(new Object[] { "Series B", 3, 6, 4, 5,10 });
            mydata.Rows.Add(new Object[] { "Series C", 5, 8, 6, 7, 15 });
            mydata.Rows.Add(new Object[] { "Series D", 7, 10, 7, 7, 5 });
            return mydata;
        }




    }
}


//using System;
//using System.Data;
//using System.Configuration;
//using System.Collections;
//using System.Web;
//using System.Web.Security;
//using System.Web.UI;
//using System.Web.UI.WebControls;
//using System.Web.UI.WebControls.WebParts;
//using System.Web.UI.HtmlControls;


//   public partial class WelcomeBox : BaseWebPart
//   {
//      public WelcomeBox()
//      {
//         this.Title = "Welcome Box";
//      }

//      protected void Page_Load(object sender, EventArgs e)
//      {

//      }
//   }
//}